﻿@model SoftHotel.Models.Parametro

@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Nuevo Parámetro</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    
    <p>
    &nbsp;
    </p>
    
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Parámetro</legend>

    <table id="MainContent_Table1" rules="none" style="border-color: Black; width: 900px; margin-bottom: 0px;">
	<tbody><tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 220px;" align="">@Html.LabelFor(model => model.tipo)</td>
		<td>
			 <div class="editor-field">
                @Html.DropDownList("tipo", "Seleccione")
            </div>
		</td>
		<td style="font-weight: bold; width: 220px;">@Html.LabelFor(model => model.valor)</td>
		<td>
			<div class="editor-field">
                @Html.TextBoxFor(model => model.valor)
            </div>
		</td>
	</tr><tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 220px;">@Html.LabelFor(model => model.valorNum)</td>
		<td>
			<div class="editor-field">
                @Html.TextBoxFor(model => model.valorNum)
            </div>
		</td>
		<td style="font-weight: bold; width: 220px;">@Html.LabelFor(model => model.idPadre)</td>
		<td>
            <div class="editor-field">
                @Html.TextBoxFor(model => model.idPadre)
            </div>
        </td>	
    </tr><tr>
		<td style="width: 20px;"></td>
		<td style="font-weight: bold; width: 220px;">@Html.LabelFor(model => model.codUnico)</td>
		<td >
            <div class="editor-field">
                @Html.TextBoxFor(model => model.codUnico)
            </div>
        </td>
</tbody></table>

        <p>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="submit" value="Guardar"/>
        </p>
        </fieldset>
}

<div>
    @Html.ActionLink("Regresar", "Index")
</div>